package com.y.web.TestDemo;

import com.sun.source.tree.AssertTree;

import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;

public class FunctionInterfaceTest {
    public static void main(String[] args) {
//        Supplier<String> str = () -> "Hello";
//
//        Supplier<String> str1 = () -> "Hello!";
//
//        Predicate<Integer> str2 = i -> i > 0;
//
//        Consumer<String> str3 = System.out::println;
//        str3.andThen(str3).accept("Hello World!");
//
//        Function<String, String> str5 = String::toUpperCase;
//        Function<String, String> str4 = s -> s.concat(s);






    }
}
